package com.echat.serviceapigateway.security.mapper;

import com.echat.serviceapigateway.security.model.authorization.Authorization;
import com.echat.serviceapigateway.security.model.authorization.Resource;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * Created by chenmohan on 2018/08/31
 *
 * @description 用户可访问的资源 相关
 */
public interface AuthorizationMapper extends Mapper<Authorization> {

    List<String> selectUrisByAccessKey(@Param("accessKey") String accessKey);

    List<Resource> selectResourcesByUserId(@Param("userId") Long userId);
}
